<template>
  <div class="bgc-white pad-20">
    <div class="flex flex-between">
      <div class="flex">
        <div>
          <el-checkbox v-model="checkAll" label="全选" size="large" />
        </div>
        <div class="mar-l-30">
          <el-button>更新基础信息</el-button>
        </div>
        <div class="mar-l-20 pad-r-21">
          <el-button>更新全部信息</el-button>
        </div>
        <div class="mar-l-20">
          <el-button type="text">移出店铺</el-button>
          <el-button type="text">移出失效商品</el-button>
        </div>
      </div>
      <div class="v-align-c">
        <el-select v-model="platformType" placeholder="每页最多条数" class="page-number-select">
          <el-option label="Zone one" value="shanghai" />
          <el-option label="Zone two" value="beijing" />
        </el-select>
        <div class="cursor-p font-14 pre-btn">上一页</div>
        <div class="cursor-p font-14 next-btn">下一页</div>
      </div>
    </div>
    <div class="mar-t-15">
      <div class="list-header font-14 font-w flex">
        <span>商品</span>
        <span>外部编码</span>
        <span>商品分类</span>
        <span>商品变动</span>
        <span>操作</span>
      </div>
      <div v-for="(item, index) of 4" :key="index" class="mar-t-10">
        <div class="goods-info pad-t-13 pad-b-20 flex">
          <div class="v-align-c">
            <div>
              <el-checkbox label="" :indeterminate="false" />
            </div>
            <div class="flex pad-l-10">
              <img class="width-80 height-80" src="https://gimg2.baidu.com/image_search/src=http%3A%2F%2Fpic153.nipic.com%2Ffile%2F20180116%2F8737320_170317603036_2.jpg&refer=http%3A%2F%2Fpic153.nipic.com&app=2002&size=f9999,10000&q=a80&n=0&g=0n&fmt=jpeg?sec=1646876869&t=735c4dec0d8b574f5a0b36b9c548c37d" alt="">
              <div class="flex-col mar-l-10">
                <span class="font-12 font-color-3 line-1 goods-title">商品标题推秋冬爆款中性宽松牛仔商品标题推秋冬爆款中性宽松牛仔...</span>
                <span class="font-12 font-color-6 mar-t-4">货号：SSSS555</span>
                <span class="font-12 font-color-6">单价：<span class="count">￥50</span></span>
              </div>
            </div>
          </div>
          <div>
            <span class="font-12 font-color-6">黑色，M</span>
          </div>
          <div>
            <span class="font-12 font-color-6">1 / 2 / 6</span>
          </div>
          <div class="flex-col">
            <span class="font-14 font-w font-color-3">标题有变动</span>
            <span class="font-12 mar-t-6 change-tag flex flex-center">待处理</span>
          </div>
          <div class="flex-col font-12 btn-group">
            <el-row>
              <el-col :span="12"><span class="cursor-p">商品详情</span></el-col>
              <el-col :span="12"><span class="cursor-p">商品属性</span></el-col>
              <el-col :span="12" class="mar-t-4"><span class="cursor-p">更新素材</span></el-col>
              <el-col :span="12" class="mar-t-4"><span class="cursor-p">查看素材</span></el-col>
              <el-col :span="12" class="mar-t-4"><span class="cursor-p">移出店铺</span></el-col>
            </el-row>
          </div>
        </div>
      </div>
    </div>
  </div>
</template>

<script lang="ts">
import { defineComponent } from 'vue'

export default defineComponent({
  setup() {

  }
})
</script>

<style lang="scss" scoped>
  $td1: 368px;
  $td2: 187px;
  $td3: 190px;
  $td4: 187px;
  $td5: 116px;
  $darkBlue: #182245;
  $fontcolor: #323233;
  .page-number-select {
    ::v-deep(.el-input__inner) {
      width: 120px !important;
      height: 30px !important;
      line-height: 30px !important;
    }
    ::v-deep(.el-input__icon) {
      line-height: 30px !important;
    }
    ::v-deep(.el-input__suffix) {
      top: -4px !important;
    }
  }
  .pre-btn, .next-btn {
    color: $fontcolor;
  }
  .pre-btn {
    margin-left: 20px;
  }
  .next-btn {
    margin-left: 36px;
  }

  .list-header {
    width: 1140px;
    height: 48px;
    background: #F9F9F9;
    border: 1px solid #F5F5F5;
    color: $fontcolor;
    &>span {
      display: flex;
      align-items: center;
    }
    &>span:nth-child(1) {
      padding-left: 50px;
      width: $td1;
    }
    &>span:nth-child(2) {
      width: $td2;
    }
    &>span:nth-child(3) {
      width: $td3;
    }
    &>span:nth-child(4) {
      width: $td4;
    }
    &>span:nth-child(5) {
      width: $td5;
    }
  }
  .user-info {
    color: $fontcolor;
  }
  .goods-info {
    &>div:not(:first-child) {
      margin-top: 7px;
    }
    &>div:nth-child(1) {
      width: $td1;
    }
    &>div:nth-child(2) {
      width: $td2;
    }
    &>div:nth-child(3) {
      width: $td3;
    }
    &>div:nth-child(4) {
      width: $td4;
    }
    &>div:nth-child(5) {
      width: $td5;
    }
    .goods-title {
      width: 189px
    }
    .count {
      color: #FF452C;
    }
  }
  .change-tag {
    width: 46px;
    height: 18px;
    background: #FFE8E5;
    border-radius: 2px;
    color: #FF3A20;
  }
  .btn-group {
    color: #409EFF;
  }
</style>
